Retrieves the monitoring state for a collection of monitoring objects and monitors. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementGroup
Dim monitoringObjects As ICollection(Of T)
Dim monitors As ICollection(Of ManagementPackMonitor)
Dim returnValue As Dictionary(Of T, ReadOnlyCollection(Of MonitoringState))

returnValue = instance.GetMonitoringStateForMonitoringObjects(monitoringObjects, monitors)

Syntax

Visual Basic
Public Function GetMonitoringStateForMonitoringObjects(Of T As PartialMonitoringObject) ( _
		monitoringObjects As ICollection(Of T), _
		monitors As ICollection(Of ManagementPackMonitor) _
) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringState))
C#
public Dictionary<T,ReadOnlyCollection<MonitoringState>> GetMonitoringStateForMonitoringObjects<T> (
		ICollection<T> monitoringObjects,
		ICollection<ManagementPackMonitor> monitors
) where T : PartialMonitoringObject
C++
public:
generic<typename T> where T : PartialMonitoringObject
Dictionary<T, ReadOnlyCollection<MonitoringState^>^>^ GetMonitoringStateForMonitoringObjects (
		ICollection<T>^ monitoringObjects, 
		ICollection<ManagementPackMonitor^>^ monitors
)
J#

JScript

Parameters

monitoringObjects

The monitoring objects for which the monitoring state is returned.

monitors

The monitor objects for which the monitoring state is returned.

Return Value

A read-only collection of MonitoringState objects.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also